<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script>
			//1、1、2、3、5、8、13、21、34
			function computed(n) {
				if (n <= 0) return 0;
				if (n == 1) return 1;
				return computed(n - 1) + computed(n - 2);
			}
			console.log(computed(5));
		</script>
	</body>
</html>
